import request from '@/utils/request'

// 查询实验室预约列表
export function listLabreservation(query) {
  return request({
    url: '/labmanage/labreservation/list',
    method: 'get',
    params: query
  })
}

// 查询实验室预约详细
export function getLabreservation(reservationId) {
  return request({
    url: '/labmanage/labreservation/' + reservationId,
    method: 'get'
  })
}

// 新增实验室预约
export function addLabreservation(data) {
  return request({
    url: '/labmanage/labreservation',
    method: 'post',
    data: data
  })
}

// 修改实验室预约
export function updateLabreservation(data) {
  return request({
    url: '/labmanage/labreservation',
    method: 'put',
    data: data
  })
}

// 删除实验室预约
export function delLabreservation(reservationId) {
  return request({
    url: '/labmanage/labreservation/' + reservationId,
    method: 'delete'
  })
}
